<?php
include "../kt_login.php";
include "../../config.php";
$db = new lg_mysql($host,$dbuser,$dbpass,$csdl);
include "../kt_admin.php";
include "../function.php";

	$noi_bat = $_POST["noi_bat"];
	echo $noi_bat;
	$cid = $_POST["cid"];
	if ($noi_bat == "true")	$db->update("cms","noi_bat","1","id = ".$cid);
	else $db->update("cms","noi_bat","0","id = ".$cid);
?>